Multiple iterations of one array js

welcome to shbcf.ru